class AddMoreImages2 < ActiveRecord::Migration
  def self.up
    say_with_time "Uploading images..." do
      Picture.create :artwork => Artwork.find_by_name('Painting'), :file => File.new(File.join(RAILS_ROOT, 'db', 'migrate', 'files', 'painting.jpg')), :media_type => Media::TYPE_PICTURE, :caption => 'a second painting image'
      Picture.create :artwork => Artwork.find_by_name('Test3'), :file => File.new(File.join(RAILS_ROOT, 'db', 'migrate', 'files', 'church_tapestry.jpg')), :media_type => Media::TYPE_PICTURE, :caption => 'a third painting image'
      Picture.create :artwork => Artwork.find_by_name('Tapestry'), :file => File.new(File.join(RAILS_ROOT, 'db', 'migrate', 'files', 'tapestry.jpg')), :media_type => Media::TYPE_PICTURE, :caption => 'a tapestry'
      Picture.create :artist => Artist.find_by_name('John Doe'), :file => File.new(File.join(RAILS_ROOT, 'db', 'migrate', 'files', 'scene-alex lloyd 2.JPG')), :media_type => Media::TYPE_PICTURE, :caption => 'another artist photo'
    end
  end

  def self.down
  end
end